import { defineStore } from "pinia"
import { ref } from "vue"

export const usejianli_worksStore = defineStore(
	"jianli_works",
	() => {
		const bn_works_list = ref([
			{
				title: "俄罗斯方块",
				label: "用html+css制作的俄罗斯方块小游戏",
				className: "bn-works-item-elsfk",
				toName: "",
				header_select: 1,
				id: 1,
			},
			{
				title: "炫彩字体",
				label: "比较通用的vue组件",
				className: "bn-works-item-xczt",
				toName: "colorfulFont",
				header_select: 1,
				id: 2,
			},
			{
				title: "聊天网页版",
				label: "这是一个可以实时聊天的网页，暂时安全性不是很高，感兴趣可以前去观望观望",
				className: "bn-works-item-3",
				toName: "http://121.43.188.61:3002",
				header_select: 3,
				id: 3,
			},
			{
				title: "1",
				label: "sadadw",
				className: "bn-works-item-4",
				toName: "",
				header_select: 1,
				id: 4,
			},
			{
				title: "1",
				label: "sadadw",
				className: "bn-works-item-5",
				toName: "",
				header_select: 1,
				id: 5,
			},
			{
				title: "1",
				label: "sadadw",
				className: "bn-works-item-6",
				toName: "",
				id: 6,
			},
		])

		return {
			bn_works_list,
		}
	},
	{
		persist: {
			enabled: true,
			strategies: {
				user: {
					storage: localStorage,
					paths: [],
				},
			},
		},
	}
)
